<?php
/* @var $this UserTbController */
/* @var $model UserTb */
/* @var $form CActiveForm */
?>

<div class="form">

    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'user-tb-user-form',
        // Please note: When you enable ajax validation, make sure the corresponding
        // controller action is handling ajax validation correctly.
        // See class documentation of CActiveForm for details on this,
        // you need to use the performAjaxValidation()-method described there.
        'enableAjaxValidation' => false,
    ));
    ?>





    <div class="row">
        <div class="form_left">
            <?php echo $form->labelEx($model, 'username'); ?>
        </div>
        <div class="form_right">
            <?php echo $form->textField($model, 'username',array('size'=>40,'maxlength'=>50,'required'=>'required')); ?>

        </div>
        <?php echo $form->error($model, 'username'); ?>
        <div class="clear"></div>
    </div>
    <div class="row">
        <div class="form_left">
            <?php echo $form->labelEx($model, 'email'); ?>
        </div>
        <div class="form_right">
            <?php echo $form->textField($model, 'email',array('size'=>40,'maxlength'=>100,'required'=>'required')); ?>

        </div>
       
        <?php echo $form->error($model, 'email'); ?>
        
        <div class="clear"></div>
    </div>
    <div class="row">
        <div class="form_left">
            <?php echo $form->labelEx($model, 'pass'); ?>
        </div>
        <div class="form_right">
            <?php echo $form->passwordField($model, 'pass', array('id'=>'pwd', 'size'=>40,'maxlength'=>50,'required'=>'required')); ?>

        </div>
        <?php echo $form->error($model, 'pass'); ?>
        <div class="clear"></div>
    </div>
    <div class="form_left">
        Nhập lại mật khẩu *
    </div>
    <div class="form_right">
        <input id="rpwd" name="rpwd" type="password" class="easyui-validatebox" required="required" validType="equals['#pwd']" size="40">
    </div>
    <div class="clear"></div>
    
        <div class="row">
        <div class="form_left">
            <?php echo $form->labelEx($model, 'phone'); ?>
        </div>
        <div class="form_right">
            <?php echo $form->textField($model, 'phone',array('size'=>40,'maxlength'=>20,'required'=>'required')); ?>

        </div>
        <?php echo $form->error($model, 'phone'); ?>
        <div class="clear"></div>
    </div>
    <div class="row">
        <div class="form_left">
            <?php echo $form->labelEx($model, 'address'); ?>
        </div>
        <div class="form_right">
            <?php echo $form->textField($model, 'address',array('size'=>60,'maxlength'=>150,'required'=>'required')); ?>

        </div>
        <?php echo $form->error($model, 'address'); ?>
        <div class="clear"></div>
    </div>





    <div class="row buttons">
        <div class="form_left"></div>
        <div class="form_right">
            <?php echo CHtml::submitButton('Cập nhật'); ?>
        </div>
        <div class="clear"></div>
    </div>

    <?php $this->endWidget(); ?>

</div><!-- form -->